from django.shortcuts import render

# Create your views here.


def login(request):
    if request.method == 'GET':
        return render(request, 'web/login.html')
    if request.method == 'POST':
        try:
            username = request.POST.get('register-username')
            password01 = request.POST.get('register-password')
            password02 = request.POST.get('register-repassword')
            email = request.POST.get('register-email')
        except:
            username = request.POST.get('login-username')
            password = request.POST.get('login-password')


def index(request):
    if request.method == 'GET':
        
        return render(request, 'web/index.html')


def news(request):
    if request.method == 'GET':
        return render(request, 'web/news.html')


def contact(request):
    if request.method == 'GET':
        return render(request, 'web/contact.html')


def gallery(request):
    if request.method == 'GET':
        return render(request, 'web/gallery.html')


def single(request):
    if request.method == 'GET':
        return render(request, 'web/single.html')


def psp(request):
    if request.method == 'GET':
        return render(request, 'web/psp.html')
